﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;

namespace PL_TileEditor
{
    public class Portal : BaseObject
    {
        public string m_szEnd;
        public Point m_EndPosition;
        public int m_TriggerButton;

        public override void Render(PaintEventArgs e, Point AutoScrollPosition)
        {
            e.Graphics.DrawImage(PL_TileEditor.Properties.Resources.portal, new Point(m_Position.X - 32 + AutoScrollPosition.X, m_Position.Y - 32 + AutoScrollPosition.Y));
            //e.Graphics.DrawEllipse(Pens.Purple, m_Position.X - 32 + AutoScrollPosition.X, m_Position.Y - 32 + AutoScrollPosition.Y, 64, 64);
        }

        public override string ToString()
        {
            return "Portal: X=" + m_Position.X.ToString() + ", Y=" + m_Position.Y.ToString() + " | Dest:" + m_szEnd + " ("+m_EndPosition.X.ToString()+","+m_EndPosition.Y.ToString()+")";
        }

        public override string GetType()
        {
            return "Portal";
        }
    }
}
